Class User

java.lang.Object
com.netscape.cmscore.usrgrp.User
All Implemented Interfaces:
JSONSerializer

public class User extends Object implements JSONSerializer
A class represents a user.
Version:
$Revision$, $Date$
Author:
cfu
  • Field Details

  • Constructor Details

    • User

      public User()
      Constructs a user.
    • User

      @Deprecated public User(String userid)
      Deprecated.
  • Method Details

    • getTpsProfiles

      public List<String> getTpsProfiles()
      Get TPS profiles
    • setTpsProfiles

      public void setTpsProfiles(List<String> tpsProfiles)
      Set TPS profiles
      Parameters:
      tpsProfiles -
    • getName

      @Deprecated public String getName()
      Deprecated.
      Retrieves the name of this identity.
      Returns:
      user name
    • getUserID

      public String getUserID()
      Retrieves user identifier.
      Returns:
      user id
    • setUserID

      public void setUserID(String userID)
    • getFullName

      public String getFullName()
      Retrieves user full name.
      Returns:
      user fullname
    • setFullName

      public void setFullName(String name)
      Sets user full name.
      Parameters:
      name - the given full name
    • getUserDN

      public String getUserDN()
      Retrieves user LDAP DN
      Returns:
      user DN
    • setUserDN

      public void setUserDN(String userdn)
      Sets user LDAP DN.
      Parameters:
      userdn - the given user DN
    • getUserType

      public String getUserType()
      Get user type
      Returns:
      user type.
    • setUserType

      public void setUserType(String userType)
      Sets user type
      Parameters:
      userType - the given user type
    • getPassword

      public String getPassword()
      Retrieves user password.
      Returns:
      user password
    • setPassword

      public void setPassword(String password)
      Sets user password.
      Parameters:
      password - the given password
    • getEmail

      public String getEmail()
      Gets user email address.
      Returns:
      email address
    • setEmail

      public void setEmail(String email)
      Sets user email address.
      Parameters:
      email - the given email address
    • getPhone

      public String getPhone()
      Retrieves user phonenumber.
      Returns:
      user phonenumber
    • getState

      public String getState()
      Retrieves user state
      Returns:
      user state
    • setPhone

      public void setPhone(String phone)
      Sets user phonenumber
      Parameters:
      phone - user phonenumber
    • setState

      public void setState(String state)
      Sets user state
      Parameters:
      state - the given user state
    • getX509Certificates

      public X509Certificate[] getX509Certificates()
      Gets list of certificates from this user
      Returns:
      list of certificates
    • setX509Certificates

      public void setX509Certificates(X509Certificate[] certs)
      Sets list of certificates in this user
      Parameters:
      certs - list of certificates
    • getCertDN

      public String getCertDN()
      Get certificate DN
      Returns:
      certificate DN
    • setCertDN

      public void setCertDN(String dn)
      Set certificate DN
      Parameters:
      dn - the given DN
    • getAttributes

      public List<netscape.ldap.LDAPAttribute> getAttributes()
    • setAttributes

      public void setAttributes(List<netscape.ldap.LDAPAttribute> attributes)
    • set

      public void set(String name, Object object) throws EBaseException
      Throws:
      EBaseException
    • get

      public Object get(String name) throws EBaseException
      Throws:
      EBaseException
    • delete

      public void delete(String name) throws EBaseException
      Throws:
      EBaseException
    • getElements

      public Enumeration<String> getElements()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception